<?php 
$course=$data;
?>

<div id='table_wrap'>
	<h2 align="center">“拔尖计划”课程开设表<?php echo ($course->courseType==CourseBean::$_LECTURE)?"（讲座）":"";?></h2>
	<div id="form_wrap">
	<form id="table_lecture" name="lecture_form"
		action="<?php echo urlToAction("course","requestlecture"); ?>">
		
		<div id="line1" class="line clearfix">
			<div id='department' style="float:left;margin-left:5px"><div class="field_name" >院&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;系：</div>
				<div class="field_value">
					<?php echo getInstitute($course->department);?>
				</div>
			</div>
			<div id="teacherName" style="float:left;margin-left:50px"><div class="field_name">类&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;型：</div>
				<div class="field_value">
					<?php echo ($course->courseType==1)?"课程":"讲座";?>
				</div>
			</div>
		</div>
		 
		<div id="line2" class="line clearfix">
			<div id="courseName" style="float:left;margin-left:5px"><div class="field_name">课程名称：</div>
				<div class="field_value">
					<?php echo $course->courseName;?>
				</div>
			</div>
			
			<div id="teacherName" style="float:left;margin-left:50px"><div class="field_name">教师姓名：</div>
				<div class="field_value">
					<?php echo $course->teacherName;?>
				</div>
			</div>
		</div>
		
		<div id="line3" class="line clearfix">
			<div id="techerType" style="float:left;margin-left:5px"><div class="field_name">教师类型：</div>
				<div class="field_value">
					<?php echo getTeacherType($course->teacherType);?>
				</div>
			</div>
			<div id="credential" style="float:left;margin-left:50px">
				<div class="field_name">
					<?php echo $course->getFieldAttr()?>：
				</div>
				<div class="field_value">
					<?php echo $course->credential;?>
				</div>
			</div>
		</div>
		
		<div id="line4" class="line clearfix">
			<div id="jobTitle" style="float:left;margin-left:5px"><div class="field_name">职&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;称：</div>
				<div class="field_value">
					<?php echo getJobTitle($course->jobTitle);?>
				</div>
			</div>
			<div id="organization" style="float:left;margin-left:50px">
			<div class="field_name">所属单位：</div>
				<div class="field_value">
					<?php echo $course->organization;?>
				</div>
			</div>
			
		</div>
		
		<div id="line5" class="line clearfix">
			<div id="courseTime" style="float:left;margin-left:5px"><div class="field_name">开课时间：</div>
				<div class="field_value">
					<?php echo $course->courseBegin;?>
				</div>
			</div>
			
			<div style="float:left;margin-left:50px"><div class="field_name">至：</div>
				<div class="field_value">
					<?php echo $course->courseEnd;?>
				</div>
			</div>
			
		</div>
		
		<div id="line6" class="line clearfix">
			<div id="weeks" style="float:left;margin-left:5px"><div class="field_name">周&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;数：</div>
				<div class="field_value">
					<?php echo $course->getWeeks();?>
				</div>
			</div>
			<div id="unit" style="float:left;margin-left:50px"><div class="field_name"><?php echo ($course->courseType==CourseBean::$_COURSE)?"周&nbsp;课&nbsp;时：":"总&nbsp;场&nbsp;次："?></div>
				<div class="field_value">
					<?php echo $course->unit;?>
				</div>
			</div>
		</div>
		
		<div id="line7" class="line clearfix">
			<div id="salay" style="float:left;margin-left:5px"><div class="field_name">课酬标准：</div>
				<div class="field_value">
					<?php echo $course->salaryStandard;?>
					<?php 
						$attr = $course->getSalaryStandardAttr();
						echo $attr;
						$splits=explode("/", $attr);
					?>
				</div>
			</div>
			<div id="salay" style="float:left;margin-left:50px"><div class="field_name">课&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;酬：</div>
				<div class="field_value">
					<?php echo $course->salary;?>
					<?php if(isset($splits[0])) echo $splits[0];?>
				</div>
			</div>
		</div>
		<div id="line6" class="line clearfix">
			<?php if($course->courseType == CourseBean::$_LECTURE):?>
			<div id="summary" style="float:left;margin-left:5px"><div class="field_name">通知标题：</div>
				<div class="field_value">
				<?php echo $course->summaryTitle;?>
				</div>
			</div>
			<?php endif;?>
			<div id="summary" style="float:left;margin-left:5px"><div class="field_name"><?php echo ($course->courseType == CourseBean::$_COURSE)?"课程和主讲人介绍：":"通知和主讲人介绍："?></div>
				<div class="long_line_field">
					<?php echo $course->summary;?>
				</div>
			</div>
		</div>
		<div id="line8" class="line clearfix">
			<div id="time" style="float:left;margin-left:5px"><div class="field_name">填表日期：</div>
				<div class="field_value">
				<?php echo $course->time;?>
				</div>
			</div>
		</div>
		
		<div class="clearfix operator">
			<?php if((isAdmin()||isSenate())&& $course->approval==0):?>
			<div class="button ajaxbtn" name="course_approvecourse_id_<?php echo $course->id; ?>">批准</div>
			<?php endif;?>
			<?php if(isAdmin()||isInstitue()):?>
			<div class="button">删除</div>
			<?php endif;?>
			<?php if(isAdmin()||isInstitue()&& $course->approval==0):?>
			<div class="button ajaxbtn" name="course_editspecificcourse_id_<?php echo $course->id;?>">修改</div>
			<?php endif;?>
			<div class="button"><a target="_blank" href=<?php echo urlToAction("course", "print")."?id=".$course->id;?>>打印此页</a></div>
		</div>
		
	</form>
	</div>
</div>
